$( document ).ready(function() {
	
	$('#addtim[data-toggle="modal"]').click(function(e) {
	  if($('#totalBiaya').val()==''){$('#totalBiaya').val(0);}
	  if(decomMoney($('#totalBiaya').val()) < decomMoney($('#Kegiatan_anggaran').val())){
		$('#timAdd').load(baseurl+"/index.php/tim/create?id_kegiatan="+id_keg);
		return true;
	  }else{
		alert('Anggaran Tidak Mencukupi');
		return false;
	  }
	});
});
